﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;           // StackFrame for Logging

namespace csharpTest
{
    abstract class Log
    {
        protected string message;

        public Log()
        {
        }

        public abstract void Write(StackFrame sf, string msg);

        protected void MakeMessage(StackFrame sf, string msg)
        {
            message = "<" + DateTime.Now + ">" + sf.GetFileName() + "-" + sf.GetFileLineNumber().ToString() + ">>" + msg;
        }
    }
}
